package cn.zhf.shop.service;

import cn.zhf.shop.entity.CountNumber;
import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.count.*;
import cn.zhf.shop.mapper.CountAgeByCamMapper;
import cn.zhf.shop.mapper.CountEduByCamMapper;
import cn.zhf.shop.mapper.SumByCamMapper;
import cn.zhf.shop.mapper.SumByOrgMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Service
public interface CountService {

    Message<List<CountEduByCam>> countAllEduByCam();
    Message<CountEduByCam> countEduByCam(int camId);
    Message<List<CountAgeByCam>> countAllAgeByCam();
    Message<CountAgeByCam> countAgeByCam(int camId);

    Message<List<SumByCam>> sumAllByCam();
    Message<SumByCam> sumByCam(int camId);
    Message<List<SumByOrg>> sumAllByOrg();
    Message<SumByOrg> sumByOrg(int orgId);

    Message<List<SumByCam>> sumAllByCamS();
    Message<SumByCam> sumByCamS(int camId);
    Message<List<SumByOrg>> sumAllByOrgS();
    Message<SumByOrg> sumByOrgS(int orgId);

    Message<List<SumByCam>> sumAllByCamNS();
    Message<SumByCam> sumByCamNS(int camId);
    Message<List<SumByOrg>> sumAllByOrgNS();
    Message<SumByOrg> sumByOrgNS(int orgId);

    Message<HashMap> countAll();

    Message countchart(CountNumbers countNumbers) throws ParseException;




    Message getExcel(int orgId,int campusId,int timetype,String searchdate) throws ParseException;

    Message orgCount(String orgName);

    Message coutconsoleUserorder(int userid,String date1,String date2) throws ParseException;

    Message coutconsoleUserorder2(int userid,String date1,String date2) throws ParseException;

    Message coutzhixiaconsoleUserorder(int userid,String date1,String date2) throws ParseException;

    Message coutzhixiaconsoleUserorder2(int userid,String date1,String date2) throws ParseException;

    Message coutallconsoleUserorder(String date1,String date2) throws ParseException;

    Message coutallconsoleUserorder2(String date1,String date2) throws ParseException;

    Message countFinance(int timeType , Date date) throws ParseException;

}
